package entity;

import java.util.List;

/**
 * <p>
 *  分页响应结果
 * </p>
 *
 * @author XieTao
 * @since 2020/9/8
 */
public class PageData<T> {
    /**
     *<p>总记录数</p>
     */
    private int total;
    /**
     *<p>大小</p>
     */
    private int size;
    /**
     *<p>数据集合</p>
     */
    private List<T> records;

    public PageData(int total, int size, List<T> records) {
        this.total = total;
        this.size = size;
        this.records = records;
    }
}
